package com.youkeyi.ddy.cloud.common.api.basic.storage.category;

import com.youkeyi.ddy.cloud.common.api.basic.storage.category.dto.StorageCategoryListCloudDto;
import com.youkeyi.ddy.cloud.common.api.basic.storage.category.param.StorageCategoryCreateCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.storage.category.param.StorageCategoryDeleteCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.storage.category.param.StorageCategoryQueryCloudParam;
import com.youkeyi.ddy.cloud.common.api.basic.storage.category.param.StorageCategoryUpdateCloudParam;
import com.youkeyi.ddy.cloud.common.response.ResponseContent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * StorageCategoryCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 2024/2/20 4:28 PM
 * @Location shenzhen.china
 */
@Slf4j
@Component
@RequestMapping("/storage/category/fallback")
public class StorageCategoryCloudServiceFallback implements StorageCategoryCloudService {

    @Override
    public StorageCategoryListCloudDto query(StorageCategoryQueryCloudParam param) {
        return new StorageCategoryListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent create(StorageCategoryCreateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent update(StorageCategoryUpdateCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }

    @Override
    public ResponseContent delete(StorageCategoryDeleteCloudParam param) {
        return new ResponseContent(Boolean.FALSE, "服务不可用");
    }
}
